package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.ArticleDO;
import com.winshare.saleAssistant.domain.query.ArticleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ArticleMapper {

    int saveArticle(ArticleDO articleDO);

    int updateArticle(ArticleDO articleDO);

    int deleteArticle(ArticleDO articleDO);

    int queryArticleCount(ArticleQuery articleQuery);

    List<ArticleDO> findArticleListByConditions(ArticleQuery articleQuery);

    ArticleDO getArticle(ArticleDO articleDO);

    int addReadCount(ArticleDO articleDO);

    int countByArticleTitle(ArticleDO articleDO);
}
